package com.skymxc.skinpractice

import android.app.Activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.skymxc.skinpractice.databinding.ActivityMainBinding

class MainActivity : Activity() {
    lateinit var binding:ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        Log.e("mxc", "onCreate: 在 super 之前" )
        super.onCreate(savedInstanceState)
        Log.e("mxc", "onCreate: 在 super 之后" )
        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)
//        setSupportActionBar(binding.mainToolbar)

        binding.mainBtnChooseSkin.setOnClickListener {
            startActivity(Intent(this@MainActivity,SkinManagerActivity::class.java))
        }
    }
}